using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Collections.Generic;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using System.IO;
using System.Xml;
using CodePlex.GpsTracker.DatabaseLayer;


public partial class UserArea_Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        
    }

    protected void cmdSave_Click(object sender, EventArgs e)
    {
        XmlDocument gpxDoc = new XmlDocument();
        gpxDoc.Load(gpxFile.FileContent);

        string gpxGuid = GpsDataStoreDatabaseLayer.SaveGpxXml(User.Identity.Name,
                                                                gpxDoc.DocumentElement.SelectSingleNode("name").InnerText,
                                                                gpxDoc.DocumentElement.SelectSingleNode("desc").InnerText,
                                                                gpxDoc.InnerXml);
    }
}
